home *** CD-ROM | disk | FTP | other *** search
/ MaxiMac 2000 December / MaxiMac 109.iso / KitWeb / Wanadoo / Media / Present.dcr / Save_5_Scripts généraux.ls < prev    next >
Encoding:
Text File  |  2000-10-10  |  5.3 KB  |  186 lines

  1. on aWait pSec
  2.   global gWaiticks
  3.   t = pSec * 60
  4.   if (the ticks - gWaiticks) < t then
  5.     go(the frame)
  6.   else
  7.     go(the frame + 1)
  8.   end if
  9. end
  10.  
  11. on aNumFresque vP
  12.   vLstNF = []
  13.   repeat with i = (vP * 2) - 1 to (vP * 2) + 4
  14.     if i > 0 then
  15.       if i > 9 then
  16.         append(vLstNF, "D00" & string(i))
  17.       else
  18.         append(vLstNF, "D000" & string(i))
  19.       end if
  20.       next repeat
  21.     end if
  22.     append(vLstNF, EMPTY)
  23.   end repeat
  24.   return vLstNF
  25. end
  26.  
  27. on aWidth vM
  28.   vM.width = the stageRight - the stageLeft
  29.   WTMin = the stageRight - the stageLeft
  30.   WTMax = 0
  31.   repeat with i = 1 to vM.char.count
  32.     WT = charPosToLoc(vM, i)[1]
  33.     if WT < WTMin then
  34.       WTMin = WT
  35.     end if
  36.     if WT > WTMax then
  37.       WTMax = WT
  38.     end if
  39.   end repeat
  40.   vM.width = WTMax - WTMin + vM.fontSize
  41. end
  42.  
  43. on aSoundFade pCh, pVol
  44.   if the volume of sound pCh > pVol then
  45.     repeat while the volume of sound pCh > pVol
  46.       set the volume of sound pCh to the volume of sound pCh * 0.80000000000000004
  47.       startTimer()
  48.       repeat while the timer < 3
  49.         updateStage()
  50.       end repeat
  51.     end repeat
  52.   else
  53.     repeat while the volume of sound pCh < pVol
  54.       set the volume of sound pCh to the volume of sound pCh * 1.19999999999999996
  55.       startTimer()
  56.       repeat while the timer < 3
  57.         updateStage()
  58.       end repeat
  59.     end repeat
  60.   end if
  61. end
  62.  
  63. on aSoundFadeOut pCh
  64.   global gParV5
  65.   repeat while the volume of sound pCh > 10
  66.     set the volume of sound pCh to the volume of sound pCh * 0.80000000000000004
  67.     startTimer()
  68.     repeat while the timer < 3
  69.       updateStage()
  70.     end repeat
  71.   end repeat
  72.   puppetSound(pCh, 0)
  73.   set the volume of sound pCh to gParV5.sonLvl[pCh]
  74. end
  75.  
  76. on aGoSac pSens
  77.   global gSacNum, gPC
  78.   if gPC then
  79.     vLstSac = ["SacHPage", "SacGoa", "SacMes", "SacAEco", "SacTR", "SacSBox", "SacWce", "SacCyber", "SacAcro", "SacReal", "SacQT"]
  80.   else
  81.     vLstSac = ["SacHPage", "SacAEco", "SacTR", "SacSBox", "SacAcro", "SacReal", "SacQT"]
  82.   end if
  83.   gSacNum = gSacNum + pSens
  84.   if gSacNum < 1 then
  85.     gSacNum = vLstSac.count
  86.   end if
  87.   if gSacNum > vLstSac.count then
  88.     gSacNum = 1
  89.   end if
  90.   aLienSac(vLstSac[gSacNum])
  91.   go(vLstSac[gSacNum])
  92.   cursor(-1)
  93. end
  94.  
  95. on aLienSac vSac
  96.   global gSacLien1, gSacLien2, gPC, gNoquit
  97.   gNoquit = 0
  98.   gSacLien1 = []
  99.   gSacLien2 = []
  100.   case vSac of
  101.     "SacHPage":
  102.       if gPC then
  103.         gSacLien1 = [EMPTY, "Filemake\Chp2\Win_32\Chp20.exe", "Services"]
  104.         gSacLien2 = ["Services\Filemake\enregist.pdf", "acrobat\reader\Acrord32.exe", EMPTY]
  105.       else
  106.         gSacLien1 = [EMPTY, "FileMaker:Claris Home Page 2.0:Installation Claris Home Page", "Services"]
  107.         gSacLien2 = ["Services:Filemaker:enregist.pdf", "Acrobat Reader 4.0:Acrobat Reader 4.0", EMPTY]
  108.       end if
  109.     "SacCyber":
  110.       gSacLien1 = [EMPTY, "CPatrol\Cpatrol.exe", "Services"]
  111.     "SacSBox":
  112.       if gPC then
  113.         gSacLien1 = [EMPTY, "SecuBox\sbf_w_pc.exe", "Services"]
  114.         gSacLien2 = ["Services\SecuBox\sbox_f_w.pdf", "acrobat\reader\Acrord32.exe", EMPTY]
  115.       else
  116.         gSacLien1 = [EMPTY, "Security BOX¬Æ FreeWare v1.0a:free10a.sea", "Services"]
  117.         gSacLien2 = ["Services:Security BOX¬Æ FreeWare v1.0a:sbox_f_w.pdf", "Acrobat Reader 4.0:Acrobat Reader 4.0", EMPTY]
  118.       end if
  119.     "SacTR":
  120.       if gPC then
  121.         gSacLien1 = [EMPTY, "TVRadio\Setup.exe", "Services"]
  122.       else
  123.         gSacLien1 = [EMPTY, "TVRadio.com:TV-Radio.com_Installer", "Services"]
  124.       end if
  125.     "SacAcro":
  126.       if gPC then
  127.         gSacLien1 = [EMPTY, "Acrobat\ar40fra.exe", "Services"]
  128.       else
  129.         gSacLien1 = [EMPTY, "Acrobat Reader:Installation de Reader 4.0", "Services"]
  130.       end if
  131.     "SacReal":
  132.       if gPC then
  133.         gSacLien1 = [EMPTY, "RealPlayer\rp8_fr.exe", "Services"]
  134.       else
  135.         gSacLien1 = [EMPTY, "RealPlayer:RealPlayer Installer", "Services"]
  136.       end if
  137.     "SacQT":
  138.       if gPC then
  139.         gSacLien1 = [EMPTY, "QTime\QuickTimeInstaller.exe", "Services"]
  140.       else
  141.         gSacLien1 = [EMPTY, "QuickTime:Installateur QuickTime", "Services"]
  142.       end if
  143.     "SacMC":
  144.       gNoquit = 1
  145.       if gPC then
  146.         gSacLien1 = [EMPTY, "macollec\macollec.exe", "Services"]
  147.       else
  148.         gSacLien1 = [EMPTY, "macollec:macollec", "Services"]
  149.       end if
  150.     "SacWce":
  151.       gSacLien1 = [EMPTY, "WinCE_H\Setup.exe", "Services"]
  152.       gSacLien2 = [EMPTY, "WinCE_P\Setup.exe", "Services"]
  153.     "SacGoa":
  154.       gSacLien1 = [EMPTY, "GoaLE\Setup.exe", "Services"]
  155.     "SacAEco":
  156.       if gPC then
  157.         gSacLien1 = [EMPTY, "Apres_l_ecole\Setup.exe", "Services"]
  158.       else
  159.         gSacLien1 = ["Services:Comment installer La Tribu ?", "SimpleText", EMPTY]
  160.       end if
  161.     "SacMes":
  162.       gSacLien1 = [EMPTY, "Messager\Messager.exe", "Services"]
  163.     "Guide":
  164.       gNoquit = 1
  165.       if gPC then
  166.         gSacLien1 = ["GuideInstal.pdf", "acrobat\reader\Acrord32.exe", EMPTY]
  167.       else
  168.         gSacLien1 = ["GuideInstal.pdf", "Acrobat Reader 4.0:Acrobat Reader 4.0", EMPTY]
  169.       end if
  170.     "Cgv":
  171.       gNoquit = 1
  172.       if gPC then
  173.         gSacLien1 = ["cgv.pdf", "acrobat\reader\acrord32.exe", EMPTY]
  174.       else
  175.         gSacLien1 = ["cgv.pdf", "Acrobat Reader 4.0:Acrobat Reader 4.0", EMPTY]
  176.       end if
  177.     "FA":
  178.       gNoquit = 1
  179.       if gPC then
  180.         gSacLien1 = ["Formul.pdf", "acrobat\reader\acrord32.exe", EMPTY]
  181.       else
  182.         gSacLien1 = ["Formul.pdf", "Acrobat Reader 4.0:Acrobat Reader 4.0", EMPTY]
  183.       end if
  184.   end case
  185. end
  186.